import request from '@/router/axios';

//获取订单统计数据
export const getList = (beginTimeStr, endTimeStr, storeId) => {
    return request({
        url: '/order/orderForm/orderStatisticsData',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            beginTimeStr: beginTimeStr,
            endTimeStr: endTimeStr,
            storeId: storeId
        }
    })
};

//获取店铺访问量的统计数据
export const getStoreViewsList = (beginTimeStr, endTimeStr, storeId) => {
    return request({
        url: '/base/store/getStoreAccessData',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            beginTimeStr: beginTimeStr,
            endTimeStr: endTimeStr,
            storeId: storeId
        }
    })
};
//获取商品访问量的统计数据
export const getGoodsViewsList = (beginTimeStr, endTimeStr, goodsClassId, goodsBrandId, storeId) => {
    return request({
        url: '/base/goodsDetail/getGoodsAccessData',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            beginTimeStr: beginTimeStr,
            endTimeStr: endTimeStr,
            goodsClassId: goodsClassId,
            goodsBrandId: goodsBrandId,
            storeId: storeId
        }
    })
};


